<?php
namespace app\index\controller;

use app\index\model\Link as L;

class PeopleController extends BaseController{
	private $foot;
	public function _initialize(){
		$this->foot=$this->foot();
	}
	public function index(){
		//便民
		$peoples=L::all(function($query){
			$query->where('status','eq',3)->order('id','asc');
		});
		$this->assign([
			'peoples'=>$peoples,
			'foot'=>$this->foot
		]);
		return $this->fetch();
	}
}